using System;
using System.Collections.Generic;
using System.Text;

using BCB.IDAL;
using BCB.Model;
using BCB.DALFactory;

namespace BCB.BLL
{
    public class Category
    {
        private static readonly ICategory dal = DataAccess.CreateCategory();

        public static List<CategoryInfo> GetMainCategoies()
        {
            return dal.GetAllMainCategory();
        }

        public static List<CategoryInfo> GetSubCategories(int mainCategoryId)
        {
            return dal.GetALLSubCategoryByMaincategory(mainCategoryId);
        }
    }
}
